function init() {
	if($('.check').hasClass('selected')){
		$('.convert').removeClass('hide');
		$('.big-unit').removeClass('hide');
	}else{
		$('.convert').addClass('hide').find('#unitConvert').val(0);
		$('.big-unit').addClass('hide').find('input').val("");
	}
	// 图片左右滚动
    /* 显示 3 个 li标签内容 */
//    var interval = $(".img-list li:first").width();
    var interval = 60;
    var curIndex = 0;
    $('.scrollbutton').click(function () {
    	var count = $(".img-list").find('li').length - 1;
        if ($(this).hasClass('disabled')){
            return false;
        }
        if ($(this).hasClass('left-arrow')){
            --curIndex;
        } else{
            ++curIndex;
        }
        $('.scrollbutton').removeClass('disabled');
        if (curIndex == 0){
            $('.left-arrow').addClass('disabled');
        }
        if (curIndex == count){
            $('.right-arrow').addClass('disabled');
        }
        $(".img-list ul").stop(false, true).animate({"marginLeft": -curIndex * interval + "px"}, 250);
    });
    $('.img-list ul').on('click','li',function(){
    	$(this).addClass('active').siblings('li').removeClass('active');
        var src=$(this).children('img').attr('src');
        $('.big-img').children('img').attr('src',src);
    });
    //删除图片
    $('.img-list').on('click','s',function(){
    	var img = $(this).siblings('img').attr('src');
    		$(this).parent('li').remove();
    		$('.big-img').find('img').attr('src','');
//    		$.ajax({
//    	        type:'post',
//    	        url:'',
//    	        success:function(data){
//    	        },
//    	        error:function(){}
//    	    });
    })
    //加载单位列表
    $.ajax({
        type:'post',
        url:'/diconet/productUnit/findAllProdUnit',
        success:function(data){
            var unitList="";
            for(var i=0;i<data.data.length;i++){
            	unitList += "<li data-id='"+data.data[i].id+"'>"+data.data[i].unitName+"</li>";
            }
            $('.product-unit').find('ul').html(unitList);
            $('.big-unit').find('ul').html(unitList);
        },
        error:function(){}
    });
    //加载商品品牌
    $.ajax({
        type:'post',
        url:'/diconet/productBrand/findAllProdBrand',
        success:function(data){
            var brandList="";
            for(var i=0;i<data.data.length;i++){
            	brandList += "<li data-id='"+data.data[i].id+"'>"+data.data[i].brandName+"</li>";
            }
            $('.product-brand').find('ul').html(brandList);
        },
        error:function(){}
    });
    //选择商品标签
    $('.product-tag .btn1').click(function(e){
    	e.preventDefault();
    	$.ajax({
    		type:'post',
            url:path + '/productLabel/productLabel/productLabelList',
            success:function(data){
                var tags = "";
                for(var i=0;i<data.data.length;i++){
                	tags += "<p class='tag-item'>"+data.data[i].label+"</p>";
                };
                layer.open({
          		  title: '请选择标签',
          		  area:'500px',
          		  content:tags,
          		  yes: function(index, layero){
      		    $('.tag-item').each(function(){
      		    	if($(this).hasClass('active')){
      		    		var that = $(this).html();
      		    		var isSame = 0;
      		    		if($('.tags-box').find('p').length == 0){
      		    			$('.tags-box').append("<p class='active'>"+that+"</p>");
      		    		}else{
      		    			$('.tags-box p').each(function(){
          		    			if($(this).html() == that){
          		    				isSame ++;
          		    			}
          		    		})
          		    		if(isSame == 0){
          		    			$('.tags-box').append("<p class='active'>"+that+"</p>");
          		    		}
      		    		}
      		    	}
      		    });
      		    layer.close(index); //如果设定了yes回调，需进行手工关闭
          		  }
          		});
            },
            error:function(){
            	alert("aaaaa");
            }
    	})
    });
    $('body').on('click','.layui-layer-content p.tag-item',function(){
        $(this).toggleClass('active');
    });
    $('.tags-box').on('click','p',function(){
        $(this).toggleClass('active');
    });
    //新增商品标签
    $('.product-tag .btn2').click(function(e){
    	e.preventDefault();
    	$(this).siblings('.add-tag').find('input').val('');
    	$('.add-tag').removeClass('hide');
    });
    $('.btn3').click(function(e){
		e.preventDefault();
		if($(this).siblings('input').val() == ""){
			layer.alert('标签名称不能为空');
		}else{
			$('.tags-box').append("<p class='active'>"+$(this).siblings('input').val()+"</p>");
			$('.add-tag').addClass('hide');
		}
	});
    $('.btn4').click(function(e){
		e.preventDefault();
		$('.add-tag').addClass('hide');
	});
    //模拟select下拉框
    $(".select-box ul").on('click','li',function(){
        $(this).parent().siblings('.show').val($(this).html());
        $(this).parent().siblings('.hidden').val($(this).attr('data-id'));
    });
    $(".product-basic .select-box div.fl").click(function(e){
        e.stopPropagation();
        var div=$(this);
        div.children('ul').toggleClass('hide');
        $(document).click(function() {
            if (!div.children('ul').hasClass("hide")) {
                div.children('ul').addClass("hide");
            }
        });
    });
    //是否启用大小单位
    $(".check").click(function(){
        $(this).toggleClass('selected');
    });
    //单选按钮
    $(".status").on("click",function(){
        $(this).addClass("on").siblings().removeClass("on");
        if(!($(this).children('input:checked').val()==undefined)){
        	$(this).siblings('p').addClass('hide');
        }
    });
    //商品分类下拉框
    $('.categoryList').on('click','s',function(e){
    	e.stopPropagation();
    	$(this).toggleClass('on');
    	$(this).siblings('ul').css('display',$(this).siblings('ul').css('display') == 'none'?'block':'none');
    });
  //商品分类
    $(".product-type div.fl").click(function(e){
        e.stopPropagation();
        var div=$(this);
        div.children('ul').toggleClass('hide');
    });
    $('.categoryList').on('click','b',function(){
    	if($(this).parent('li').hasClass('last-type')){
    		$('.product-type').find('.show').val($(this).html());
    		$('.product-type').find('.hidden').val($(this).parent('li').attr('data-id'));
    	}else{
    		layer.msg('请选择子分类', {
    			  time: 1500,
    			  area: '300px',
    			  icon:2,
    			  offset: '0'
    			});
    	}
    });
    function ff(){
    	$.ajax({
            type:'post',
            url:'/diconet/productCategory/findAllProdCategory',
            success:function(data){
            	var list = data.data;
            	var level1 = "";
            	for(var i=0;i<list.length;i++){
            		if(list[i].parentId == ""){
            			var isParent = 0;
            			for(var j=0;j<list.length;j++){
//            				判断该分类是否含有子分类
            				if(list[i].id == list[j].parentId){
            					isParent = 1;
            				}
            			}
            			if(isParent == 0){
            				level1 += "<li class='last-type' data-id='"+list[i].id+"'><b>"+list[i].categoryName+"</b><ul></ul></li>";
            			}else if(isParent == 1){
            				level1 += "<li data-id='"+list[i].id+"'><s>▼</s><b>"+list[i].categoryName+"</b><ul></ul></li>";
            			}
            		}
            	}
            	$('.categoryList').html(level1);
            	$('.categoryList>li').each(function(){
            		var level2 = "";
            		var id = $(this).attr('data-id');
            		for(var i=0;i<list.length;i++){
                		if(list[i].parentId == id){
                			var isParent = 0;
                			for(var j=0;j<list.length;j++){
//                				判断该分类是否含有子分类
                				if(list[i].id == list[j].parentId){
                					isParent = 1;
                				}
                			}
                			if(isParent == 0){
                				level2 += "<li class='last-type' data-id='"+list[i].id+"'><b>"+list[i].categoryName+"</b><ul></ul></li>";
                			}else if(isParent == 1){
                				level2 += "<li data-id='"+list[i].id+"'><s>▼</s><b>"+list[i].categoryName+"</b><ul></ul></li>";
                			}
                		}
                	};
                	$(this).children('ul').html(level2);
            	});
            	$('.categoryList>li>ul>li').each(function(){
            		var level3 = "";
            		var id = $(this).attr('data-id');
            		for(var i=0;i<list.length;i++){
                		if(list[i].parentId == id){
                			level3 += "<li data-id='"+list[i].id+"' class='last-type'><b>"+list[i].categoryName+"</b><ul></ul></li>";
                		}
                	};
                	$(this).children('ul').html(level3);
            	})
            },
            error:function(){}
        });
    }
    ff();
    //添加规格
    $(".spec-list").on('keydown','.spec-item .spec-input',function(e){
        e.stopPropagation();
        var event=arguments.callee.caller.arguments[0]||window.event;//消除浏览器差异
        if(event.keyCode == 13) {
            event.preventDefault();
            if($(this).val()==""){
                return false;
            }else{
            	var value = $(this).val();
            	var $input = $(this);
            	var isSame = 0;
            	$(this).siblings('p').each(function(){
            		if($(this).text() ==value){
            			promtp("该规格值已存在，请重新输入");
            			$input.val("");
            			isSame = 1;
            		}
            	});
            	if(isSame ==0){
            		$(this).before("<p class='fl'>"+$(this).val()+"<i></i></p>");
                    $(this).val("");
            	}
            }
        }
    });
    $(".spec-list").on('keydown','.spec-item .spec-name',function(e){
    	var event=arguments.callee.caller.arguments[0]||window.event;//消除浏览器差异
        if(event.keyCode == 13) {
            e.preventDefault();
            }
    });
    //删除规格
    $('.spec-list').on('click','.spec-name span',function(){
    	$(this).parent().parent().remove();
    	var name = $(this).siblings('.spec_name').val();
    	$($('.spec-detail').children('table').children('thead').find('.spec-td')).each(function(){
			if($(this).html() == name){
				$(this).remove();
			}
		});
		$($('.spec-detail').children('table').children('tbody').find('.spec-td')).each(function(){
			if($(this).attr('data-specname') == name){
				$(this).remove();
			}
		});
    })
    //删除规格参数
    $('.spec-list').on('click','.spec-item .spec-params i',function(e){
        e.preventDefault();
        var specVal = $(this).parent('p').text();
        var isSame = 0;
        $($('.spec-td').find('input')).each(function(){
        	if($(this).val() == specVal){
        		isSame =1;
        	}
        });
        if(isSame == 1){
        	promtp("该规格值已被使用，无法删除");
        }else{
        	$(this).parent().remove();
        }
    });
    //添加规格
    $('.set-spec .add-btn').click(function(e){
        e.preventDefault();
        var count = $('.spec-list').children().length;
        var html='<div class="spec-item"><div class="spec-name fl"><span></span><input type="text" name="spec-name" class="spec_name" value="新增规格'+count+'"/> </div> <div class="spec-params"> <input class="spec-input" type="text"/> </div> </div>';
        $(this).parent().siblings('.spec-list').append(html);
        addTd();
    });
    //修改规格名称
    $(".spec-list").on('focus','.spec_name',function(){
    	var name = $(this).val();
    	var isSame = 0;
    	$(this).on('blur',function(){
    		var $input = $(this);
    		var newName = $(this).val();
//    		判断是否含有相同规格名
    		$($(this).parent().parent().siblings('.spec-item')).each(function(){
    			if($(this).find('.spec_name').val() == newName){
    				promtp("该规格名称已存在，请重新命名");
    				$input.val(name);
    				newName = name;
    				isSame = 1;
    			}
    		});
    		if(isSame == 0){
    			$($('.spec-detail').children('table').children('thead').find('.spec-td')).each(function(){
	    			if($(this).html() == name){
	    				$(this).html(newName);
	    			}
	    		});
	    		$($('.spec-detail').children('table').children('tbody').find('.spec-td')).each(function(){
	    			if($(this).attr('data-specname') == name){
	    				$(this).attr('data-specname',newName);
	    			}
	    		});
    		}
    	})
    });
    //选择单个规格
    $('.spec-detail').on('click','.spec-select',function(){
    	$(this).find('ul').toggleClass('hide');
    }).on('click','.spec-select li',function(){
    	$(this).parent('ul').siblings('input').val($(this).html());
    })
    //点击加载规格详细规格
    $('.spec-detail').on('click','.spec-td',function(){
//    	var html = "<li>默认</li>";
    	var html = "";
    	var specName = $(this).attr('data-specname');
    	$('.spec-list .spec-item').each(function(){
    		if($(this).find('.spec_name').val() == specName){
    			$($(this).find('p')).each(function(){
    				html += "<li>"+$(this).text()+"</li>";
    			})
    		}
    	});
    	$(this).find('ul').html(html);
    });
    /*//设置商品规格按钮
    $('.add-product-btn').click(function(e){
    	e.preventDefault();
    	$($('.spec-list').find('.spec-input')).each(function(){
    		if($(this).val() != ""){
    			$(this).attr('readonly','true').before('<p class="fl">'+$(this).val()+'</p>').val('');
    		}
    	});
    	if($('.spec-detail table thead').children('tr').length == 0){
    		layer.confirm('是否开始设置商品价格？（已经添加的规格参数将不可更改）', {icon: 3, title:'提示'}, function(index){
    			$('.spec-list').find('input').attr('readonly','true');
    			$('.spec-list i').remove();
    			$('.set-spec .add-btn').remove();
    			$('.add-rows').removeClass('hide');
    				addProductSpec();
    				layer.close(index);
    			});
    	}
    })*/
    //添加商品按钮
    $('body').on('click','.add-rows',function(e){
    	e.preventDefault();
    	addSpec();
    });
    //删除商品
    $('.spec-detail tbody').on('click','span',function(){
    	$(this).parent().parent().remove();
    });
    
    //是否按照经销商级别/客户单独定价
    $(".level-price>div s,.price-product>div s").on('click',function(){
        $(this).toggleClass('on');
        $(this).parent().siblings('table').toggleClass('showTable');
    });
    //是否启用大小单位
    $('.check').click(function(){
    	if($(this).hasClass('selected')){
    		$('.convert').removeClass('hide').find('#unitConvert').val(0);
    		$('.big-unit').removeClass('hide').find('input').val("");
    	}else{
    		$('.convert').addClass('hide').find('#unitConvert').val(0);
    		$('.big-unit').addClass('hide').find('input').val("");
    	}
    });
//    修改商品
    if(GetQueryString('productId')){
    	var productId = GetQueryString('productId');
    	$('#productId').val(productId);
//    	加载商品标签
    	$.ajax({
	        type:'post',
	        data:{productId:productId},
	        url:path + '/productLabel/productLabel/labelListByProductId',
	        success:function(data){
	        	var html = "";
	        	for(var i = 0;i<data.data.length;i++){
	        		html += "<p class='active'>"+data.data[i].label+"</p>";
	        	}
	        	$('.tags-box').html(html);
	        },
	        error:function(){}
	    });
//    	加载商品图片
    	$.ajax({
	        type:'post',
	        data:{productId:productId},
	        url:path + '/productAttachment/productAttachment/attaListByProductId',
	        success:function(data){
	        	var html = "";
	        	for(var i = 0;i<data.data.length;i++){
	        		if(data.data[i].type == 0){
	        			html += "<li><s>X</s><img src=/docs/"+data.data[i].url+"></li>";
	        		}else{
	        			$('#attachment-upload').val(data.data[i].url);
	        		}
	        	}
	        	$('.img-list').children('ul').append(html);
	        	$('.big-img').find('img').attr('src',"/docs/"+data.data[0].url);
	        },
	        error:function(){}
	    });
//    	修改时加载商品规格
    	$.ajax({
	        type:'post',
	        data:{productId:productId},
	        url:path + '/orderlang/specification/specList',
	        success:function(data){
	        	var html = "";
	        	for(var i = 0;i<data.data.length;i++){
	        		var specList = data.data[i].specValue.split(',');
	        			html += "<div class='spec-item'>";
	        			html += "<div class='spec-name fl default'>";
	        			html += "<input type='text' readonly class='spec_name' name='spec.name' value='"+data.data[i].specName+"'>";
	        			html += "</div>";
	        			html += "<div class='spec-params'>";
	        			for(var j = 0;j<specList.length;j++){
	        				html += "<p class='fl'>"+specList[j]+"</p>";
	        			}
	        			html += "<input class='spec-input' type='text'>";
	        			html += "</div>";
	        			html += "</div>";
	        	}
	        	$('.spec-list').html(html);
	        	addProductSpec();
	        },
	        error:function(){}
	    });
//		加载详细商品价格
    	$.ajax({
	        type:'post',
	        data:{productId:productId},
	        url:path + '/productPrice/productPrice/findPriceSpecByProductId',
	        success:function(data){
	        	var html = "";
	        	for(var i = 0;i<data.data.length;i++){
	        		html += "<tr>";
	        		html += "<td><span></span></td>";
	        		for(var j = 0;j<data.data[i].productSpecList.length;j++){
	        			html += "<td class='spec-td params spec' data-specname='"+data.data[i].productSpecList[j].specName+"'>";
	        			html += "<div class='spec-select'>";
	        			html += "<s>▼</s>";
	        			html += "<input type='text' placeholder='选择规格' value='"+data.data[i].productSpecList[j].specValue+"' readonly>";
	        			html += "<ul class='hide'>";
	        			html += "</ul>";
	        			html += "</div>";
	        			html += "</td>";
	        		}
	        		html += "<td class='market-price params' data-specname='marketPrice'><input type='text' value="+data.data[i].marketPrice+"></td>";
	        		html += "<td class='cost-price params' data-specname='costPrice'><input type='text' value="+data.data[i].costPrice+"></td>";
	        		html += "<td class='MOQ params' data-specname='moq'><input type='text' value="+data.data[i].moq+"></td>";
	        		html += "<td></td></tr>";
	        	};
	        	$('.spec-detail').children('table').children('tbody').html(html);
	        },
	        error:function(){}
	    });
//    	加载商品折扣
    	$.ajax({
	        type:'post',
	        data:{productId:productId},
	        url:path + '/productPrice/productPrice/findOneByProductId',
	        success:function(data){
	        	$('#partnerDiscount').val(data.data.shareholderDiscount);
	        	$('#diamondMemberDiscount').val(data.data.diamondDiscount);
	        	$('#goldMemberDiscount').val(data.data.goldDiscount);
	        },
	        error:function(){}
	    });
    	//修改商品时提交
        $('.fix-btn .submit').click(function(){
        	var imgList = "";
        	$($('.img-list li')).each(function(){
        		if($(this).find('img').length != 0){
        			imgList += "<input name='imgHref' type='hidden' value='"+$(this).find('img').attr('src').slice(5)+"'/>"
        		}
        	});
        	$('#uploadImg').html(imgList);
        	if(vailMsg()){
        		$.ajax({
        	        type:'post',
        	        data:$('#product').serialize(),
        	        url:path + '/product/product/productUpdate',
        	        success:function(data){
        	        	if(data.state == 1)
        	        	layer.msg('商品修改成功', {
        	    			  time: 1500,
        	    			  area: '300px',
        	    			  icon:1,
        	    			  offset: '0'
        	    			},function(){
        	    				window.location.href = path + "/distributor/commodity_maintenance";
        	    			} );
        	        },
        	        error:function(){}
        	    });
        	}
        });
    }else{
    	//新增商品时提交
        $('.fix-btn .submit').click(function(){
        	if(vailMsg()){
        		console.log($('#product').serialize());
        		$.ajax({
        	        type:'post',
        	        data:$('#product').serialize(),
        	        url:path + '/product/product/productSave',
        	        success:function(data){
        	        	if(data.state == 1){
        	        		layer.msg('商品添加成功', {
          	    			  time: 1500,
          	    			  area: '300px',
          	    			  icon:1,
          	    			  offset: '0'
          	    			},function(){
          	    				window.location.href = path + "/distributor/commodity_maintenance";
          	    			} );
        	        	}else if(data.state == 0){
        	        		promtp(data.msg);
        	        	}
        	        },
        	        error:function(){}
        	    });
        	}
        });
    }
};
init();
function addTd(){
	var child = $('.spec-list').children('.spec-item').length-1;
	var specName = $('.spec-list').children('.spec-item:nth-child('+(child+1)+')').find('.spec_name').val();
	$('.spec-detail').children('table').children('thead').find('.market-price').before("<td class='spec-td'>"+specName+"</td>");
	$('.spec-detail').children('table').children('tbody').find('.market-price').before("<td class='spec-td params spec' data-specname='"+specName+"'><div class='spec-select'><s>▼</s><input type='text' placeholder='选择规格' value='默认' readonly><ul class='hide'><li>默认</li></ul></div></td>")
}
//添加规格
function addProductSpec(){
	var thead = "";
	thead +="<tr>";
	thead +="<td></td>";
	$('.spec-list .spec-item').each(function(){
		thead +="<td class='spec-td'>"+$(this).find('input.spec_name').val()+"</td>";
	})
	thead +="<td class='market-price'>市场价</td>";
	thead +="<td class='cost-price'>成本价</td>";
	thead +="<td class='MOQ'>起订量</td>";
	thead +="<td></td>";
	thead +="</tr>";
    $('.spec-detail').children('table').children('thead').html(thead);
}
function addSpec(){
	var tbody = "";
	tbody += "<tr>";
	tbody += "<td><span></span></td>";
	$('.spec-list .spec-item').each(function(){
		tbody += "<td class='spec-td params spec' data-specName='"+$(this).find('input.spec_name').val()+"'>";
		tbody += "<div class='spec-select'>";
		tbody += "<s>▼</s>";
		tbody += "<input type='text' placeholder='选择规格' readonly/>";
		tbody += "<ul class='hide'>";
		$($(this).find('p')).each(function(){
			tbody += "<li>"+$(this).html()+"</li>";
		});
		tbody += "</ul>";
		tbody += "</div>";
		tbody += "</td>";
	});
	tbody += "<td class='market-price params' data-specName='marketPrice'>";
	tbody += "<input type='text' value='1'/>";
	tbody += "</td>";
	tbody += "<td class='cost-price params' data-specName='costPrice'>";
	tbody += "<input type='text' value='1'/>";
	tbody += "</td>";
	tbody += "<td class='MOQ params' data-specName='moq'>";
	tbody += "<input type='text' value='1'/>";
	tbody += "</td>";
	tbody += "<td></td>";
	tbody += "</tr>";
	$('.spec-detail').children('table').children('tbody').append(tbody);
}
//非空判断
function vailMsg(){
//	获取富文本框中的内容
	$('#ueditor_content').val(ueditorPro.getContent());
	var productId = GetQueryString('productId');
//	将商品标签组合放入隐藏域
	var productTags = [];
	$($('.tags-box').find('p')).each(function(){
		if($(this).hasClass('active')){
			productTags.push($(this).html());
		}
	});
	$('#productTag').val(productTags.join(','));
//	将商品规格打包
	var specList = [];
	$($('.spec-list .spec-item')).each(function(){
		var specItem = {};
		var specParam = [];
		$($(this).find('p')).each(function(){
			specParam.push($(this).text());
		});
		specItem['specName'] = $(this).find('.spec_name').val();
		specItem['specValue'] = specParam.join(',');
		specList.push(specItem);
	});
	$('#specList').val(JSON.stringify(specList));
//	将具体商品信息打包
	var productList = [];
	$($('.spec-detail table tbody tr')).each(function(){
		var productItem = {};
		var specList = [];
		$($(this).find('.params')).each(function(){
			var param = {};
			if($(this).hasClass('spec')){
				param['specName'] = $(this).attr('data-specname');
				param['specValue'] = $(this).find('input').val() === ""?"":$(this).find('input').val();
				specList.push(param);
			}else{
				productItem[$(this).attr('data-specname')] = $(this).find('input').val() === ""?"":$(this).find('input').val();
			};
		});
		productItem['specList'] = specList;
		productList.push(productItem);
	})
	$('#productList').val(JSON.stringify(productList));
	if($('[name="productName"]').val() === ""){
		promtp("商品名称不能为空");
	}else if($('[name="categoryId"]').val() === ""){
		promtp("请选择商品类别");
	}else if($('[name="warehouseId"]').val() === ""){
		promtp("请选择商品所属仓库");
	}else if($('[name="productTag"]').val() === ""){
		promtp("请选择商品标签");
	}else if($('[name="littleUnitId"]').val() === ""){
		promtp("请选择商品单位");
	}else if($('[name="productCode"]').val() === ""){
		promtp("商品编号不能为空");
	}else if($('[name="brandId"]').val() === ""){
		promtp("请选择商品品牌");
	}else if($('[name="seq"]').val() === ""){
		promtp("商品排序不能为空");
	}else if($('[name="partnerDiscount"]').val() === ""||$('[name="diamondMemberDiscount"]').val() === ""||$('[name="goldMemberDiscount"]').val() === ""){
		promtp("请输入不同级别客户对应的折扣");
	}else if($('#uploadImg').children().length == 0){
		promtp("请至少上传一张商品图片");
	}else if(productList.length == 0){
		promtp("请设置商品价格");
	}else{
		return true;
	};
}



